.section .data
vector_a:
    .word 1
    .word 2
    .word 3
    .word 4
    .word 5
vector_b:
    .word 6
    .word 7
    .word 8
    .word 9
    .word 10
vector_result:
    .space 20
vector_length:
    .word 5

.section .text
.globl _start

_start:
    # 向量加法演示程序
    la x5, vector_a
    la x6, vector_b
    la x7, vector_result
    lw x29, 0(x3)
    li x29, 5
    li x28, 0
loop_start_1:
    slli x30, x28, 2
    add x31, x5, x30
    lw x10, 0(x31)
    add x31, x6, x30
    lw x11, 0(x31)
    add x10, x10, x11
    add x31, x7, x30
    sw x10, 0(x31)
    addi x28, x28, 1
    blt x28, x29, loop_start_1
loop_end_2:
    li a0, 0
    li a7, 93
    ecall